// @fintsize : 24px;
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

// html,
// body {
//   height: 100%;
// }

body {
  font-size: .5rem;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.15;
  background-image: linear-gradient(100deg, rgb(46, 128, 160), rgb(240, 253, 189));
}

/* body背景渐变 渐变方向 100deg 字体12px */

.viewport {
  max-width: 1920px;
  min-width: 1024px;
  display: flex;

  /* 左侧表单项全部圆角 边框 1px ，不得有边框重叠*/
  .menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    // background-color: rgba(0, 0, 0, .3);


    // 自适应，占剩余的宽度 
    .form {
      display: flex;
      justify-content: center;
      align-items: center;

      font-size: 18px;
      color: #44444a;
      height: 80px;
      //line-height: 80px;
      // margin-bottom: 30px;

      input {
        width: 150px;
        height: 30px;
        border-radius: 2px;
        outline: none;
        // 取消蓝色边框 
        border: 2px solid rgb(35, 123, 158);
        margin: 0 5px;
        text-indent: 10px;
      }

      button {
        width: 80px;
        height: 30px;
        color: #fff;
        background-color: rgb(35, 123, 158);
        font-size: 12px;
        vertical-align: bottom;
        // 垂直对齐，下边线，去边框线
        border: 0;
        outline: none;
        border-radius: 5px;
      }
    }

    .tab {
      display: flex;
      justify-content: center;
      align-items: center;

      //text-align: center;
      table {
        border-radius: 5px;
        border: 1px solid rgb(152, 192, 189);
        font-size: 18px;
        border-spacing: 0;

        thead>tr {
          font-weight: 700;
          background-image: linear-gradient(100deg, rgb(240, 253, 189), rgb(46, 128, 160));

          th {
            //表头单元格宽高
            width: 220px;
            height: 30px;
            border-right: 1px solid rgb(152, 192, 189);
            border-bottom: 1px solid rgb(152, 192, 189);

            &:first-child {
              border-radius: 5px 0 0 0;
            }

            &:last-child {
              border-radius: 0 5px 0 0;
            }
          }
        }

        tbody>tr {
          &:last-child {
            border-bottom: 0
          }

          td {
            width: 220px;
            height: 30px;
            text-align: center;
            color: #000;
            border-top: 0;
            border-left: 0;
            border-right: 1px solid rgb(152, 192, 189);
            border-bottom: 1px solid rgb(152, 192, 189);


            &:first-child {
              border-radius: 0 0 0 5px;
            }

            &:last-child {
              border-radius: 0 0 5px 0;
            }
          }
        }
      }
    }

  }

  /* 右侧图表区，固定宽度；左侧自适应 */
  .chart {
    width: 520px;
    height: 100%;

    display: flex;
    flex-direction: column;
    // 改变主轴方向


    // background-color: rgb(245, 195, 195);


    .chart1 {
      // flex: 1;

      background-color: rgba(182, 120, 120, 0.1);
      height: 285px;

    }

    .chart2 {
      //flex: 1;

      background-color: rgba(0, 0, 0, .1);
      height: 285px;
    }
  }
}